package cn.aiyuan.nio;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;

/**
 * @author wy
 * @date 2020/9/29
 */
public class TestNio {
    public static void main(String[] args) throws Exception {
        ByteBuffer byteBuffer = ByteBuffer.allocate(1024);
        FileInputStream inputStream = new FileInputStream("C:\\Users\\Administrator\\Desktop\\Dockerfile");
        FileChannel channel = inputStream.getChannel();
        //channel.read()
        //byteBuffer.wait();
    }
}
